package com.cogu.repository;

import com.cogu.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by cogu on 2017/12/24.
 */
public interface GirlRepository extends JpaRepository<Girl,Integer>{

    /**
     * 通过年龄查询女生
     * @param age
     * @return List<Girl>
     */
    List<Girl> findByAge(Integer age);

}
